package com.TLLT.QADMobileItemEnquiry;

import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.PreferenceActivity;

public class SettingsMainActivity extends PreferenceActivity implements OnSharedPreferenceChangeListener {
	
	public static final String pref_key_barcode = "pref_key_barcode";
	public static final String pref_key_description = "pref_key_description";
	public static final String pref_key_product_line = "pref_key_product_line";
	public static final String pref_key_item_type = "pref_key_item_type";
	public static final String pref_key_lot_serial = "pref_key_lot_serial";
	public static final String pref_key_reference = "pref_key_reference";
	public static final String pref_key_location = "pref_key_location";
	public static final String pref_key_quantity = "pref_key_quantity";
	
		
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.preferences_main);
    }
    
    @Override
    protected void onResume() {
        super.onResume();
        getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this);
    }

    @Override
    protected void onPause() {
        super.onPause();
        getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
    }

	public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
			String key) {
		
	}
}